package com.antler.smt.service.portal;

import com.antler.smt.request.portal.*;
import com.antler.smt.response.admin.GetMemberListResp;
import com.antler.smt.response.base.Result;

import javax.servlet.http.HttpServletResponse;

/**
 *  * TODO
 *  *
 *  * @author vic
 *  * @date 2018-03-25 16:01
 *  
 */
public interface MemberService {

    /**
     * 会员注册
     *
     * @param request
     * @return
     */
    Result memberRegister(MemberRegisterReq request);

    /**
     * 重置密码
     *
     * @param request
     * @return
     */
    Result resetPassword(ResetPasswordReq request);

    /**
     * 注册发送验证码
     *
     * @param request
     * @return
     */
    Result sendVerCodeForRegister(SendVerCodeForFindPasswordReq request);

    /**
     * 找回密码发送验证码
     *
     * @param request
     * @return
     */
    Result sendVerCodeForFindPassword(SendVerCodeForFindPasswordReq request);

    /**
     * 检验验证码
     *
     * @param request
     * @return
     */
    Result checkVerCode(CheckVerCodeReq request);

    /**
     * 会员登录
     *
     * @param request
     * @return
     */
    Result memberLogin(MemberLoginReq request, HttpServletResponse response);

    /**
     *  获取当前会员实体
     *
     * @param memberId
     * @return
     */
    Result<GetMemberListResp> getMemberInfo(long memberId);


}
